//
// Created by yewei on 2023/1/9.
//
#include <bits/stdc++.h>

using namespace std;

int main() {
    freopen("../input.txt", "r", stdin);
    int T;
    cin>>T;
    int n;
    int a,b,val;
    while(T--){
        cin>>n;
        int edges[n+1][n+1];
        cin>>a>>b>>val;
        edges[a][b] = val;

    }
}

int bfs(int n,int e[n+1][n+1],int start){
    int now = 0;
    vector<int> visit(n+1);
    for(int i=1;i<=n;i++){
        
    }
}
